/*
 * @Description: 排放填报模型
 * @Author: qingyang
 * @Date: 2022-03-29 10:39:31
 * @LastEditors: qingyang
 * @LastEditTime: 2023-03-03 19:24:16
 */
export type IFactorType = 'ALL' | 'EMISSION_SOURCE' | 'FACTOR';
export interface IFactorListParams {
  catalogNo: string;
  taskNo: string;
  type: IFactorType;
  name?: string;
}

export interface IDischargeUnitParams {
  frameworkNo: string;
  sourceName: string;
  materialName: string;
}

export interface IDataList {
  saleDataNo: string;
  checked?: boolean;
  originalEmission?: number | string; // 原始碳排放
  emissionT?: number | string; // 转化成吨
  carBrand: string;
  vehicleType: string;
  factoryName: string;
  vehicleTypeNo: string;
  salesCount: string;
  modelNo?: string;
  vehicleEmission?: number | string;
  vehicleFillType?: 'MANUAL' | 'FOOTPRINT' | 'NOT_HANDLE' | 'FAIL_MODEL' | 'FAIL_STAGE'; // 填报类型：MANUAL-手工输入，FOOTPRINT-足迹获取
}
export interface IImportResult {
  importResult: boolean; //导入结果
  importMsg: string;
  resultUrl: string;
  fileName: string;
  totalSaleNum: number | string;
  dataList: IDataList[];
}
export type IAccountStage = 'SALE_SUPPLY' | 'SALE_USE' | 'NORMAL';

export interface ISyncEmsParams {
  taskNo: string;
  materialName: string;
  unit: string;
}

export interface IListItem {
  name: string;
  no: string;
  dataSource: 'MANUAL' | 'EMS';
}
